//package com.wy.cms.controller;
//
//import com.wy.cms.common.BaseController;
//import com.wy.common.exception.BizException;
//import com.wy.constant.SpringMVCConst;
//import com.wy.domain.AreaCity;
//import com.wy.protocol.ERRORCODE;
//import com.wy.protocol.PageQuery;
//import com.wy.service.IAreaCityService;
//import com.wy.service.ex.IAreaCityExService;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Scope;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.ResponseBody;
//
//import java.util.List;
//
//
//@Controller
//@Scope(SpringMVCConst.SCOPE)
//@RequestMapping(value="/template")
//public class TemplateController extends BaseController {
//
//    private static final Logger LOGGER= LoggerFactory.getLogger(TemplateController.class);
//
//    /**
//     * 首页模板
//     * @return
//     */
//    @RequestMapping(value = "/index", method = RequestMethod.GET)
//    @ResponseBody
//    public List<AreaCity> findPage(PageQuery pageQuery) throws BizException {
//        return lists;
//    }
//
//    /**
//     * 详情页模板
//     * @return
//     */
//    @RequestMapping(value = "/detail", method = RequestMethod.GET)
//    @ResponseBody
//    public int findCount() throws BizException {
//        int count = 0;
//        try {
//            count = areaCityExService.findCount();
//        }catch(Exception e){
//            throw new BizException(ERRORCODE.FAIL.getCode(), ERRORCODE.FAIL.getMessage());
//        }
//        return count;
//    }
//
//}
//
